<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>地图</title>
  <script src="./jquery.min.js"></script>
  <script src="./echarts.min.js"></script>
</head>
<body>
  <div style="height: 400px;width: 400px;" id='main'></div>
</body>
<script>
  var myCharts =echarts.init(document.getElementById('main')) 
  $.get('./china.json',(res)=>{
    echarts.registerMap('chinaMap',res)
    var option = {
      geo:{
        type:'map',
        map:'chinaMap'
      }
    }
    myCharts.setOption(option)
  })
</script>
</html>